Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_proxy_connection: make test more robust #390

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

tsnoam
Copy link
Contributor

@tsnoam tsnoam commented Dec 23, 2024

  • Support running on macos with podman (this probably also fixes it to work with docker as well). This is done by using a dedicated network name and by dynamically finding the host ip. In macos, both podman & docker are running inside a Linux VM, so it is essential to find a real IP associated with the macos itself.

  • Run the mock TCP server on a dynamic port. This avoid flakiness in case the port is already in use.

src/protocols/tcp/server.rs Outdated Show resolved Hide resolved
 - Support running on macos with podman (this probably also fixes it to work with docker as well).
   This is done by using a dedicated network name and by dynamically finding the host ip.
   In macos, both podman & docker are running inside a Linux VM, so it is essential to find a real IP
   associated with the macos itself.

 - Run the mock TCP server on a dynamic port. This avoid flakiness in case the port is already in use.
@tsnoam tsnoam force-pushed the test_proxy_connection branch from 7a6e8b0 to 394e37f Compare January 2, 2025 11:41
@erebe
Copy link
Owner

erebe commented Jan 3, 2025

Thanks :)

@erebe erebe merged commit 92ec4a9 into erebe:main Jan 3, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants